package com.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.entity.BulkMerchant;
import com.shop.entity.BulkMerchantReturn;
import com.shop.entity.BulkReturnDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject: shop
 * @BelongsPackage: com.shop.mapper
 * @Author: 尹标
 * @CreateTime: 2020-11-26 20:14
 * @Description:
 */
@Mapper
public interface BulkMerchantMapper extends BaseMapper<BulkMerchant> {
    //高级索引
    List<BulkMerchant> superSearch(String superSearchKeyWord);

    //条件查询
    List<BulkMerchant> queryAllByModel(BulkMerchant model);

    //修改订单状态
    Integer changeStatus(BulkMerchant bulkMerchant);

    Integer insertMerchantReturn(BulkMerchantReturn bulkMerchantReturn);

    Integer insertList(@Param("list") List<BulkReturnDetail> list);


    int updateMerchantReturnStatus(@Param("status") String status, @Param("id") Integer id);

    BulkMerchant getById(Integer id);

    Integer  insertReturnDetail(BulkReturnDetail bulkReturnDetail);



}
